home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _demos / demos / 3ddemo / Info next >
Text File  |  1994-10-16  |  4KB  |  89 lines

  1. This is just a short Demo of 3D Animated Graphics.⌐ Bill McKeague.151094
  2.  
  3. Ensure CapsLocks are Off.
  4.  
  5. My thanks go out to Kevin Swinton of Archimedes World Magazine for his help
  6. in hidden line removal and polygonal resolution which I was having a few
  7. problems with.He had a few different angles (no pun intended) to approach
  8. these from,which helped me sort out the problems I had.
  9.  
  10. Anyway,on to the Demo.
  11.  
  12. 2 versions are supplied.The main program,and one without the backdrop,hence
  13. the name NoBDrop.The first uses about 200k due to the sprite I used for
  14. wraparound continuous scrolling and the other 18k.Adding a background was
  15. just an afterthought but I think it looks better,and the extra procedures
  16. didn't take very long.
  17.  
  18. As it is only a demo,there wasn't a lot you can do with it,except watch,but
  19. I decided to make it a little bit interactive.The keys used are as obvious
  20. as I could make them.ie. s for Stop,g for Go etc.
  21.  
  22. Key            Action
  23.  a             accellerates the objects rotation
  24.  d             decellerates the objects rotation
  25.  c             colour reset to initial values
  26.  x             rotates the object around the x-axis
  27.  y             rotates the object around the y-axis
  28.  z             rotates the object around the z-axis
  29.  s             stops the object rotating (stop)
  30.  g             resumes rotation (go)
  31.  r             resets the initial values,etc (See notes)
  32.  '             recedes the object(into the distance)
  33.  /             brings the object closer
  34.  1             changes the Red colour value     
  35.  2             changes the Green colour value   
  36.  3             changes the Blue colour value    
  37.  Cursor Keys   moves the object in the relative direction (See notes)
  38.  Space         selects the next object
  39.  Escape        exits the program
  40.  
  41. Notes
  42. In the ver NoBDrop the cursor keys L+R move the object,but in the SpPlot
  43. version they move the backdrop giving the impression of L+R movement.
  44.  
  45. Pressing r will reset the initial values as at the start,helpful if you lose
  46. the object off the screen,etc.
  47.  
  48. Pressind d will decrease the rate of rotation of the object until it
  49. eventually stops.Another press on d will give it a negative rotation,ie.it
  50. will rotate backwards.Therefore,to decrease a negative rate-of-rotation you
  51. will have to press a.If in doubt press r to reset.
  52.  
  53. The auto-repeat is left on,which means that if you hold a key down too
  54. long,the program will continue until the key buffer is empty,and there will
  55. be a delay.3 reasons for this,-
  56. 1 I did not want to reconfigure anybody's computer.
  57. 2 Escape bypassed the auto repeat reset which was annoying.
  58. 3 Continuous movement of the object,L,R,U,D,etc required a lot of key
  59. presses.I thought it better with the-auto repeat on.
  60.  
  61. Pressing ' brings the object closer until it fills the screen.I stopped it
  62. at this point because any further it gave a negative 3D effect,ie,it showed
  63. the hidden sides of the object in front of the viewed side.
  64. I could have reconfigured the algorithm for hidden line removal when the
  65. variable went negative but I figured if it went behind you (relatively
  66. speaking),you wouldn't see it anyway.
  67.  
  68. You may also notice,if you read the program,that a lot of the procedures
  69. repeat themselves.This was deliberate.
  70. The main reason for this was that I wanted each object to be in the same
  71. position that you left it in when you returned to it and not assign global
  72. variables that would affect all of the objects at the same time.This I
  73. thought would have been boring,as the only change would have been the shape
  74. of the object.Apart from that,I couldn't be bothered setting up arrays for
  75. the different variables.
  76. The way I chose to do it,you can have each object with different
  77. characteristics,except the colour which is global,and I thought this was
  78. better.Experiment and see!.
  79.  
  80. As usual,any hints,tips,criticisms etc to
  81.  
  82. Bill McKeague
  83. 14 The Centre
  84. Evenwood
  85. Bishop Auckland
  86. Co Durham
  87. DL14 9QF
  88.  
  89.  Have fun.